<?php use_stylesheets_for_form($form); ?>
<?php use_javascripts_for_form($form); ?>

<form action="<?php echo url_for('comment/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
            <?php echo $form->renderHiddenFields(false) ?>
            <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['email_id']->renderLabel() ?></th>
        <td>          
          <?php echo $form['email_id'] ?>
          <span class="error"><?php echo $form['email_id']->getError() ?></span>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['web_url']->renderLabel() ?></th>
        <td>
          <?php echo $form['web_url'] ?>
          <span class="error"><?php echo $form['web_url']->getError() ?></span>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['name']->renderLabel() ?></th>
        <td>
          <?php echo $form['name'] ?>        
          <span class="error"><?php echo $form['name']->getError() ?></span>
        </td>
      </tr>
      <tr>
        <th valign="top"><?php echo $form['content']->renderLabel() ?></th>
        <td>
          <?php echo $form['content'] ?><br />
            <span class="error"><?php echo $form['content']->getError() ?></span>
        </td>
      </tr>
    </tbody>
  </table>
</form>